﻿<%@ Page Language="C#" AutoEventWireup="true" Title="Cierre de Caja" MasterPageFile="~/MasterPage.master" CodeFile="CierreCaja.aspx.cs" Inherits="Admin_CierreCaja"%>
<asp:Content ID="content" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table width="100%" class="tablaForm">
        <tr>
            <td class="tdCajas" colspan="3">
                Inventario de Caja &nbsp;<asp:Label ID="lblCaja" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td class="tdForm" colspan="3" style="text-align: center">
                <asp:Label ID="lblAccion" runat="server" CssClass="lblAccion" Text="lblAccion"></asp:Label></td>
        </tr>
        <tr>
            <td class="tdForm" colspan="3" style="text-align: center">
                <asp:Label ID="lblFecha" runat="server" Text="Fecha Apertura:"></asp:Label></td>
        </tr>
        <tr>
            <td class="tdTit" style="width: 34%; text-align: center; height: 21px;">
                <asp:Label ID="Label2" runat="server" Text="APERTURA:"></asp:Label></td>
            <td style="width: 34%; text-align: center; height: 21px;" class="tdTit">
                <asp:Label ID="lblMonedas" runat="server" Text="Monedas $:"></asp:Label></td>
            <td style="width: 33%; text-align: center; height: 21px;" class="tdTit">
                <asp:Label ID="Label1" runat="server" Text="CIERRE:"></asp:Label></td>
        </tr>
        <tr>
            <td class="tdForm" style="width: 34%; text-align: right">
                <asp:TextBox ID="txtACtv5" runat="server" AutoPostBack="True" CssClass="numero"
                    OnTextChanged="txtACtv5_TextChanged"></asp:TextBox></td>
            <td class="tdForm" style="width: 34%; text-align: center">
                <asp:Label ID="lblCtv5" runat="server" Text="$ 0,05 :"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: left">
                <asp:TextBox ID="txtCtv5" runat="server" CssClass="numero" OnTextChanged="txtCtv5_TextChanged" AutoPostBack="True"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdForm" style="width: 34%; text-align: right">
                <asp:TextBox ID="txtACtv10" runat="server" AutoPostBack="True" CssClass="numero"
                    OnTextChanged="txtACtv10_TextChanged"></asp:TextBox></td>
            <td class="tdForm" style="width: 34%; text-align: center">
                <asp:Label ID="lblCtv10" runat="server" Text="$ 0,10 :"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: left">
                <asp:TextBox ID="txtCtv10" runat="server" CssClass="numero" OnTextChanged="txtCtv10_TextChanged" AutoPostBack="True"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdForm" style="width: 34%; text-align: right">
                <asp:TextBox ID="txtACtv25" runat="server" AutoPostBack="True" CssClass="numero"
                    OnTextChanged="txtACtv25_TextChanged"></asp:TextBox></td>
            <td class="tdForm" style="width: 34%; text-align: center">
                <asp:Label ID="lblCtv25" runat="server" Text="$ 0,25 :"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: left">
                <asp:TextBox ID="txtCtv25" runat="server" CssClass="numero" OnTextChanged="txtCtv25_TextChanged" AutoPostBack="True"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdForm" style="width: 34%; text-align: right">
                <asp:TextBox ID="txtACtv50" runat="server" AutoPostBack="True" CssClass="numero"
                    OnTextChanged="txtACtv50_TextChanged"></asp:TextBox></td>
            <td class="tdForm" style="width: 34%; text-align: center">
                <asp:Label ID="lblCtv50" runat="server" Text="$ 0,50 :"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: left">
                <asp:TextBox ID="txtCtv50" runat="server" CssClass="numero" OnTextChanged="txtCtv50_TextChanged" AutoPostBack="True"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdForm" style="width: 34%; text-align: right">
                <asp:TextBox ID="txtACtv100" runat="server" AutoPostBack="True" CssClass="numero"
                    OnTextChanged="txtA1_TextChanged"></asp:TextBox></td>
            <td class="tdForm" style="width: 34%; text-align: center">
                <asp:Label ID="lblCtv100" runat="server" Text="$ 1,00 :"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: left">
                <asp:TextBox ID="txtCtv100" runat="server" CssClass="numero" OnTextChanged="txt1_TextChanged" AutoPostBack="True"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdTit" colspan="3" style="text-align: center">
                <asp:Label ID="lblBilletes" runat="server" Text="Billetes $:"></asp:Label></td>
        </tr>
         <tr>
             <td class="tdForm" style="width: 34%; text-align: right">
                 <asp:TextBox ID="txtA2" runat="server" AutoPostBack="True" CssClass="numero"
                     OnTextChanged="txtA2_TextChanged"></asp:TextBox></td>
            <td class="tdForm" style="width: 34%; text-align: center">
                <asp:Label ID="lbl2" runat="server" Text="$ 2,00 :"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: left">
                <asp:TextBox ID="txt2" runat="server" CssClass="numero" OnTextChanged="txt2_TextChanged" AutoPostBack="True"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdForm" style="width: 34%; text-align: right">
                <asp:TextBox ID="txtA5" runat="server" AutoPostBack="True" CssClass="numero"
                    OnTextChanged="txtA5_TextChanged"></asp:TextBox></td>
            <td class="tdForm" style="width: 34%; text-align: center">
                <asp:Label ID="lbl5" runat="server" Text="$ 5,00 :"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: left">
                <asp:TextBox ID="txt5" runat="server" CssClass="numero" OnTextChanged="txt5_TextChanged" AutoPostBack="True"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdForm" style="width: 34%; text-align: right">
                <asp:TextBox ID="txtA10" runat="server" AutoPostBack="True" CssClass="numero"
                    OnTextChanged="txtA10_TextChanged"></asp:TextBox></td>
            <td class="tdForm" style="width: 34%; text-align: center">
                <asp:Label ID="lbl10" runat="server" Text="$10,00 :"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: left">
                <asp:TextBox ID="txt10" runat="server" CssClass="numero" OnTextChanged="txt10_TextChanged" AutoPostBack="True"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdForm" style="width: 34%; height: 23px; text-align: right">
                <asp:TextBox ID="txtA20" runat="server" AutoPostBack="True" CssClass="numero"
                    OnTextChanged="txtA20_TextChanged"></asp:TextBox></td>
            <td class="tdForm" style="width: 34%; text-align: center;">
                <asp:Label ID="lbl20" runat="server" Text="$ 20,00 :"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: left; height: 23px;">
                <asp:TextBox ID="txt20" runat="server" CssClass="numero" OnTextChanged="txt20_TextChanged" AutoPostBack="True"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdForm" style="width: 34%; text-align: right">
                <asp:TextBox ID="txtA50" runat="server" AutoPostBack="True" CssClass="numero" OnTextChanged="txtA50_TextChanged"></asp:TextBox></td>
            <td class="tdForm" style="width: 34%; text-align: center">
                <asp:Label ID="lbl50" runat="server" Text="$ 50,00 :"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: left">
                <asp:TextBox ID="txt50" runat="server" CssClass="numero" OnTextChanged="txt50_TextChanged" AutoPostBack="True"></asp:TextBox></td>
        </tr>
         <tr>
             <td class="tdForm" style="width: 34%; height: 23px; text-align: right">
                 <asp:TextBox ID="txtA100" runat="server" AutoPostBack="True" CssClass="numero"
                     OnTextChanged="txtA100_TextChanged"></asp:TextBox></td>
            <td class="tdForm" style="width: 34%; text-align: center;">
                <asp:Label ID="lbl100" runat="server" Text="$ 100,00 :"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: left; height: 23px;">
                <asp:TextBox ID="txt100" runat="server" CssClass="numero" OnTextChanged="txt100_TextChanged" AutoPostBack="True"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdForm" style="width: 34%; height: 21px; text-align: center">
                <asp:TextBox ID="txtATEfectivo" runat="server" CssClass="numero" ReadOnly="True"></asp:TextBox></td>
            <td class="tdTit" style="width: 34%; text-align: center; height: 21px;">
                <asp:Label ID="lblEfectivo" runat="server" Text="Total Efectivo $:"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: center; height: 21px;">
                <asp:TextBox ID="txtTEfectivo" runat="server" CssClass="numero" ReadOnly="True"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdForm" style="width: 34%; height: 21px; text-align: center">
                <asp:TextBox ID="txtATCheques" runat="server" CssClass="numero" OnTextChanged="txtATCheques_TextChanged" ReadOnly="True"></asp:TextBox></td>
            <td class="tdTit" style="width: 34%; text-align: center; height: 21px;">
                <asp:Label ID="lblCheques" runat="server" Text="Total Cheques $:"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: center">
                <asp:TextBox ID="txtTCheques" runat="server" CssClass="numero" OnTextChanged="txtTCheques_TextChanged" ReadOnly="True"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdForm" colspan="1" style="height: 23px; text-align: center">
                <asp:TextBox ID="txtATValores" runat="server" CssClass="numero" ReadOnly="True"></asp:TextBox></td>
            <td class="tdTit" colspan="1" style="text-align: center; height: 23px;">
                <asp:Label ID="lblTValores" runat="server" Text="Total Valores $:"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: center; height: 23px;">
                <asp:TextBox ID="txtTValores" runat="server" CssClass="numero" ReadOnly="True"></asp:TextBox></td>
        </tr>
         <tr>
             <td class="tdLiteral" colspan="1" style="text-align: center">
                 </td>
            <td class="tdTit" colspan="1" style="text-align: center">
                <asp:Label ID="lblTDifer" runat="server" Text="Diferencia Caja $:"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: center">
                <asp:TextBox ID="txtTDifer" runat="server" CssClass="numero" ReadOnly="True"></asp:TextBox></td>
        </tr>
         <tr>
             <td class="tdLiteral" colspan="1" style="text-align: center">
                 </td>
            <td class="tdTit" colspan="1" style="text-align: center">
                <asp:Label ID="lblTGeneral" runat="server" Text="Total General $:"></asp:Label></td>
            <td class="tdForm" style="width: 33%; text-align: center">
                <asp:TextBox ID="txtTGeneral" runat="server" CssClass="numero" ReadOnly="True"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdForm" colspan="3" style="text-align: center">
                <asp:TextBox ID="txtObs" runat="server" Rows="3" TextMode="MultiLine" Width="90%"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdForm" colspan="3" style="text-align: center">
            </td>
        </tr>
        <tr>
            <td class="tdBotones" colspan="3" style="text-align: center">
                <asp:Button ID="btnGuardar" runat="server" Text="Guardar" Width="75px" OnClick="btnGuardar_Click" />
                &nbsp; &nbsp;<asp:Button ID="btnCerrar" runat="server" Text="Cerrar Caja" Width="75px" OnClick="btnCerrar_Click" />
                &nbsp;
                <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" Width="75px" OnClick="btnCancelar_Click" /></td>
        </tr>
        <tr id="trCajas1" runat="server">
            <td class="tdBotones" colspan="3" style="text-align: center">
                <asp:GridView ID="gvCajas" runat="server" AutoGenerateColumns="False" CellPadding="4"
                    ForeColor="#333333" GridLines="Vertical" OnPageIndexChanging="gvCaja_PageIndexChanging"
                    Width="40%">
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                    <Columns>
                        <asp:TemplateField HeaderText="N&#250;mero Caja">
                            <ItemTemplate>
                                <asp:Label ID="IdCaja" runat="server" Text='<%# Bind("Id_Caja") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle ForeColor="White" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Usuario">
                            <ItemTemplate>
                                <asp:Label ID="Usuario" runat="server" Text='<%# Bind("UsuarioLog") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle ForeColor="White" />
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#325FB9" Font-Bold="True" Font-Names="Arial Rounded MT Bold"
                        ForeColor="White" />
                    <AlternatingRowStyle BackColor="Gainsboro" />
                </asp:GridView>
            </td>
        </tr>
        <tr id="trCajas2" runat="server">
            <td class="tdBotones" colspan="3" style="text-align: center">
                A Caja:
                <asp:TextBox ID="txtCaja" runat="server" Width="26px"></asp:TextBox>&nbsp;
                <asp:Button ID="btnPasar" runat="server" Text="Pasar" Width="75px" OnClick="btnPasar_Click" /></td>
        </tr>
    </table>
</asp:Content> 
